<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.lmpop.updateHtml.updateHtml.UpdateIndexHtml" %>

<%
	request.setCharacterEncoding("UTF-8");
	
	String index_temp="",save_dir="",default_page="";
	if(request.getParameter("index_temp")!=null)
	{
		index_temp  =  request.getParameter("index_temp");
	}
	if(request.getParameter("save_dir")!=null){
		save_dir  = request.getParameter("save_dir");
	}
	if(request.getParameter("default_page")!=null){
		default_page  = request.getParameter("default_page");
	}
	
	try{
		UpdateIndexHtml updateHtml = new UpdateIndexHtml();
		updateHtml.updateIndexHtml(index_temp,save_dir,default_page);
		out.println("更新成功。<a href='/' target='_blank'>浏览</a>");
	}catch(Exception e){
		out.println("更新失败。");
	}
%>
